import { textAlignOptions,fontFamilyOptions } from "../../../lib/const"
const getStyleFormJson = () => {
  // 全局标题样式
  const title = [
    {
      type: "select",
      label: "字体",
      fieldName: "fontFamily",
      options: fontFamilyOptions,
      extraConfig: {
        className: "row",
        allowClear: true
      }
    },
    {
      type: "switch",
      label: "加粗",
      fieldName: "isBold",
      initialValue: undefined,
      extraConfig: {
        className: "row",
      }
    },
    {
      type: "switch",
      label: "倾斜",
      fieldName: "isTilt",
      initialValue: undefined,
      extraConfig: {
        className: "row",
      }
    },
    {
      type: "color",
      label: "文字颜色",
      fieldName: "color",
      initialValue: "#333",
      extraConfig: {
        className: "row",
      }
    },
    {
      type: "number",
      label: "字号",
      fieldName: "fontSize",
      initialValue: 14,
      extraConfig: {
        className: "row",
      }
    },
    {
      type: "select",
      label: "水平对齐",
      fieldName: "textAlign",
      initialValue: "left",
      options: textAlignOptions,
      extraConfig: {
        className: "row",
        allowClear: true
      }
      
    },
    {
      type: "number",
      label: "行高",
      fieldName: "lineHeight",
      initialValue: 14,
      extraConfig: {
        className: "row",
      }
      
    },
    
  ]

  return title
}
export default getStyleFormJson



